{include file="public/header296" /}
<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list">
  <div class="layui-form-item">
    <label class="layui-form-label">名称</label>
    <div class="layui-input-inline">
      <input type="text" lay-verify="required" name="name" autocomplete="on" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">顶级分类</label>
    {notempty name="data['category_list']"}
    <div class="layui-input-inline">
      <select name="parent_id" lay-filter="parent_id" lay-verify="required">
        <option value="0">顶级分类</option>
        {volist name="data['category_list']" id="vo"}
        <option value="{$vo.id}">{$vo.name}</option>
        {/volist}
      </select>
    </div>
    {/notempty}
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">排序id</label>
    <div class="layui-input-inline">
      <input type="text" name="sort" value="{:sort_id('trade')}" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item layui-hide">
    <input type="button" lay-submit lay-filter="Lay-app-form-insert" id="Lay-app-form-insert" value="添加">
  </div>
</div>
<script>
  layui.use(['layer','form'], function(){
    var $ = layui.$
        , form = layui.form;
})
</script>
{include file="public/footer" /}